#include "contrlutils.h"
#include "ui_contrlutils.h"
#include <QDebug>

ContrlUtils::ContrlUtils(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ContrlUtils)
{
    ui->setupUi(this);

}

ContrlUtils::~ContrlUtils()
{
    delete ui;
}



//void ContrlUtils::onBtnShanClicked(bool value)
//{
//    if(value){
//        ui->widgetWind->setStyleSheet("background-color: rgb(200, 200, 200)");
//        //ui->labelShan->setStyleSheet("border-image: url(:/con/contrl/fs2.png);");
//    }else{
//        ui->widgetWind->setStyleSheet("background-color: rgb(255, 255, 255,10);");
//       // ui->labelShan->setStyleSheet("border-image: url(:/con/contrl/fs1.png);");

//    }
//}

//void ContrlUtils::onBtnAirClicked(bool value)
//{
//    if(value){
//        ui->widgetAir->setStyleSheet("background-color: rgb(200, 200, 200)");

//        ui->labelMode->setStyleSheet("border-image: url(:/con/contrl/空调模式-开.png);");
//        ui->labelWinStyle->setStyleSheet("border-image: url(:/con/contrl/空调风力-开.png);");
//        ui->labelSendWind->setStyleSheet("border-image: url(:/con/contrl/文字-送风-选中.png);");
//        ui->labelLittleWind->setStyleSheet("border-image: url(:/con/contrl/文字-小风-选中.png);");
//    }else{
//        ui->widgetAir->setStyleSheet("background-color: rgb(44, 48, 56);");

//        ui->labelMode->setStyleSheet("border-image: url(:/con/contrl/空调模式-关.png);");
//        ui->labelWinStyle->setStyleSheet("border-image: url(:/con/contrl/空调风力-关.png);");
//        ui->labelSendWind->setStyleSheet("border-image: url(:/con/contrl/文字-送风-未选中.png);");
//        ui->labelLittleWind->setStyleSheet("border-image: url(:/con/contrl/文字-小风-未选中.png);");
//    }
//}


void ContrlUtils::on_btnLight_2_clicked(bool checked)
{
    emit lightCheckClicked(checked);
}
void ContrlUtils::on_btnShan_clicked(bool checked)
{
    emit shanCheckClicked(checked);
}
void ContrlUtils::on_btnAir_clicked(bool checked)
{
    emit airCheckClicked(checked);
}

